import url from '@/url.config'
export default ({ service, request, tools }) => ({
    PostequipmentTypesave(data) {
        // 添加设备类型
        return request({
            url: url.ip3+"/equipmentType/save",
            method: "post",
            data: data
        })
    },
    PostequipmentTypefindByPage(data) {
        // 分页查询设备类型
        return request({
            url: url.ip3+"/equipmentType/findByPage",
            method: "post",
            data: data
        })
    },
    PutequipmentTypeedit(data) {
        // 修改设备类型
        return request({
            url: url.ip3+"/equipmentType/edit",
            method: "put",
            data: data
        })
    },
    DelequipmentTyperemove(id) {
        // 删除设备类型
        return request({
            url: url.ip3+"/equipmentType/remove/" + id,
            method: "delete"
        })
    }
})